<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>

<script type="text/javascript">
	
var module1 = (function(){
	var count = 0;
	var m1 = function() {
		alert("m1");
	};
	var m2 = function() {
		alert("m2");
	};
	return {
		m1: m1,
		m2: m2
	};
})();

alert(module1.count);
module1.m1();

</script>

</body>
</html>